<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>实时聊天</title>
    <link rel="stylesheet" th:href="@{css/index.css}">
    <script th:src="@{js/index.js}"></script>
</head>
<body>
    <div class="container">
        <input id="sessionId" type="hidden" name="sessionId">
        <div class="header">
            <div class="username">
                用户名：<span id="username"></span>
            </div>
            <div id="title" class="title">
                正在和&nbsp;<span class="friend-name"></span>&nbsp;&nbsp;聊天
            </div>
            <div class="user-state">
                <span id="online" style="color: rgb(137, 217, 97);">在线</span>
                <span id="offline" style="color: red;">离线</span>
            </div>
        </div>
        <div class="body">
            <div class="chat-content">
                <ul id="chat-list" class="chat-list">
                </ul>
            </div>
            <div class="send-content">
                <form id="chat-message-form" action="" method="get">
                    <input id="from-name" type="hidden" name="fromName">
                    <input id="to-name" type="hidden" name="toName">
                    <textarea id="message" name="message" placeholder="在此输入文字信息..."></textarea>
                    <button id="send-btn" class="send-btn" type="submit" style="cursor: pointer;">发送</button>
                </form>
            </div>
        </div>
        <div class="right-nav">
            <div class="friend-list">
                <div class="friend-list-title list-title">好友列表</div>
                <div class="underline">
                    <div class="list-underline"></div>
                </div>
                <div class="friend-list-content list-content">
                    <ul id="friend-list" class="list">
                    </ul>
                </div>
            </div>
            <div class="system-broadcast">
                <div class="system-broadcast-list-title list-title">系统广播</div>
                <div class="underline">
                    <div class="list-underline"></div>
                </div>
                <div class="system-broadcast-list-content list-content">
                    <ul id="system-broadcast-list" class="list">
                    </ul>
                </div>
            </div>
        </div>
    </div>
</body>
</html>